package com.campus.util;

public class HobbyEnum {
    public static int PLAY_GAME=100;
    public static int LISTEN_MUSIC=10;
    public static int RUNNING=1;
    public static int ERROR=0;

    public static int getWeigth(String hobby){
        if("打游戏".equals(hobby)){
            return PLAY_GAME;
        }
        if ("听音乐".equals(hobby)){
            return LISTEN_MUSIC;
        }
        if("跑步".equals(hobby)){
            return RUNNING;
        }
        return 0;
    }
}
